#include <QtTest>
#include "src/TestDemo.h"
// add necessary includes here

class Example : public QObject
{
    Q_OBJECT

public:
    Example();
    ~Example();

private slots:
    void test_case1();
};

Example::Example() {
}

Example::~Example() {}

void Example::test_case1() {
    TestDemo *demo = new TestDemo();
    int re = demo->add(1, 2);
    QCOMPARE(re, 5);
}

QTEST_APPLESS_MAIN(Example)

#include "tst_example.moc"
